package Test;

/**
 * @author 徐志荣
 * @date 2023/4/18 10:49
 */

class MyRunnable implements Runnable{

    @Override
    public void run() {
        System.out.println("hi t");
    }
}
public class CreateThread2 {
    public static void main(String[] args) {
        MyRunnable runnable = new MyRunnable();
        Thread thread = new Thread(runnable);
        thread.start();
        System.out.println("hi main");
    }
}
